#define _CRT_SECURE_NO_WARNINGS  1

#include<stdio.h>
#define N 10

void init(int arr[],int n)
{
	for (int i = 0; i < n; i++)
		arr[i] = 0;
}

void print(int arr[],int n)
{
	for (int i = 0; i < n; i++)
	{
		printf("%d ", arr[i]);
	}
}

void reverse(int arr[], int n)
{
	int i = 0;
	int j = n - 1;
	int m = 0;
	while (i < j)
	{
		m = arr[j];
		arr[j] = arr[i];
		arr[i] = m;
		i++;
		j--;
	}
}

int main()
{
	int arr[N] = { 1,2,3,4,5,6,7,8,9,10 };
	/*for (int i = 0; i < 10; i++)
		scanf("%d", arr[i]);*/
	init(arr, N);
	print(arr, N);
	reverse(arr, N);
	return 0;
}
